<template>

        <section @click.stop class='loginCon'>
            <div class="imgTu">
                  
            </div>
            <div class="loginBox">  
                <div></div>
                <div>请您重新从企业微信登录</div>

            </div>
        </section>
</template>

<script>
import Bus from '@/common/js/vueBus.js';
  export default {
    name: 'login',
    data(){
    return {
      name:'',
      pwd:"",
    }
  },
  methods:{

    submitForm(){

      let params = {
        userid:this.name,
        password:this.pwd
      };
      // this.$refs.loginForm.submit()
      this.Axios.Post(
        this.URL.login.url,
        params
      ).then(function(res){
          if (res.data.status === 1) {
              var token = res.data.token;
              localStorage.setItem('token',token);
              Bus.$emit("login-succ",true);
              // location.reload();
              // self.$router.push('/employeeServ?emplid='+id);
              location.href = 'index.html?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxMDAwMDM5Iiwic3ViIjoiYzEwMDcxMDUiLCJpc3MiOiJXWFAiLCJleHAiOjE1MTM5OTc5NjV9._HJfNTpCAS93V6f34Y2atKjIRzj6RqVJ9ORsgPdK7jA';
          } else {
            // if (res.data.datas.count >= 3) {
            //   self.ishidecode = true;
            // }
            // self.checkImgEve();
          }
      }).catch(function(err){
          console.log(err);
          // location.reload();
      })
  

    },

    //切换图片路径事件
    checkImgEve(){
      var self=this;
        console.log('img');
        self.Axios.Post(
        this.URL.createYZM.url).then(function(res){
        console.log(res,'img')
        self.checkImgSrc=res.data.datas;
        console.log(self.checkImgSrc);
      }).catch(function(err){
        console.log(err);
      });
    }
  },
  mounted(){
    // this.checkImgEve();
      
  }
  }
</script>

<style lang="less" scoped>
 
.loginCon{
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    background: #fff;
    z-index: 3000;
    right:0;
    .imgTu {
        width: 1.2rem;
        height: 1.2rem;
        background:url('/static/imgs/reLogin.png') no-repeat;
        background-size:100%;
        margin: 1rem auto 0.4rem auto;
    }     
    .loginBox{
      text-align:center;
    }
}





</style>


